import {get, post, del, put} from "@/apis/http/request";
import {DepressSolution} from "@/apis/model/depress/DepressSolutionModel";


export const getModel = (id: number) => get("/depressSolution/"+ id);

/**
* 得到列表
* @param params
*/
export const getDepressSolutionList = (params: any) => get("/depressSolution/list", params)

/**
* 得到分页列表
* @param params
*/
export const depressSolutionPage = (params: any) => post("/depressSolution/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteDepressSolutionById = (id: number) => del("/depressSolution/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertDepressSolution = (param: DepressSolution) => post("/depressSolution", param)

/**
* 更新数据
* @param param
*/
export const updateDepressSolution = (param: DepressSolution) => put("/depressSolution", param)

/**
 *
 * @param questionId
 */
export const getSolutionModelByQuestionId = (questionId: number)=> get("/depressSolution/getSolutionModelByQuestionId/" + questionId);